/*
 * @Author: your name
 * @Date: 2020-08-26 15:39:41
 * @LastEditTime: 2020-08-26 15:39:50
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: /decorator/src/reflect.ts
 */
	
import 'reflect-metadata';

class User {
  @Reflect.metadata('data', 'test')
  @Reflect.metadata('data1', 'test')
  getName() {}
}

class Teacher extends User {}

console.log(Reflect.getOwnMetadataKeys(User.prototype, 'getName'));
console.log(Reflect.getOwnMetadataKeys(Teacher.prototype, 'getName'));
